eeprom: Pull out transfer length computation
authorMarek Vasut <[email protected]>
Tue, 10 Nov 2015 19:53:29 +0000 (20:53 +0100)
committerTom Rini <[email protected]>
Sun, 22 Nov 2015 02:50:25 +0000 (21:50 -0500)
commit39b6f98bd55541a89eddaf59effeb75f6fe631f6
tree51f5134a701a77ec374c923b69810387bb5910f3
parent6717e3c84fc3934241eb02a3b437b06dede12594
eeprom: Pull out transfer length computation

Pull out the code which computes the length of the transfer
into separate code and clean it up a little. This again trims
down the code duplication.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Heiko Schocher <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
common/cmd_eeprom.c